using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using ClientGUI;

namespace ClientGUI.Main.PopUpWindows
{
    /// <summary>
    /// The about dialog
    /// </summary>
    public partial class AboutDiag : Form
    {
        /// <summary>
        /// WIDTH!
        /// </summary>
        int my_width;
        
        /// <summary>
        /// HEIGHT!!
        /// 
        /// LAST COMMENT BIATCH
        /// </summary>
        int my_height;

        /// <summary>
        /// 
        /// </summary>
        public AboutDiag()
        {
            InitializeComponent();
            XmlDocument config = new XmlDocument();
            config.LoadXml(global::ClientGUI.Config.Configuration_xml);
            displayDocument1.Config = new Configuration(config);

            my_width = 411;
            my_height = 404;
        }

        private void contrib_btn_Click(object sender, EventArgs e)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(global::ClientGUI.Config.contrib);
            displayDocument1.SetDocument(doc);
        }

        private void license_btn_Click(object sender, EventArgs e)
        {
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(global::ClientGUI.Config.LGPL);
            displayDocument1.SetDocument(doc);
        }

        private void close_btn_Click(object sender, EventArgs e)
        {
            Dispose();
        }

        private void AboutDiag_Resize(object sender, EventArgs e)
        {
            Width = my_width;
            Height = my_height;
        }
    }
}